﻿using System;
using System.IO;
using System.Configuration;
using System.Web;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using PlugNT.Cms.Core;
using PlugNT.Common.Templet;

namespace PlugNT.Cms.Page
{
    public class BasePager : System.Web.UI.Page
    {
        protected override void OnPreRenderComplete(EventArgs e)
        {
            //固定内存大小
            if (PlugNT.Custom.WebConfig.MemorySize > 0)
            {
                if ((int)PlugNT.Common.Utils.GetMemorySize() > PlugNT.Custom.WebConfig.MemorySize)
                {
                    string error = PlugNT.Common.RevokeMemory.ReduceMemoryFootPrint();
                    if (error != "")
                    {
                        PlugNT.Custom.SysManager.LogErrorWriteln(error);
                    }
                }
            }
            base.OnPreRenderComplete(e);
        }
    }
}
